package object_oriented;

public class Student {
    String name;
    double chineseScore;
    double mathScore;

    public void printTotalScore(){
        System.out.println(name + "的总成绩是：" + (chineseScore + mathScore));
    }

    public void printAverageScore(){
        System.out.println(name + "的总成绩是：" + (chineseScore + mathScore)/2);
    }
}
